package com.xiaohao.springbootadmintemplate.dao;

import com.xiaohao.springbootadmintemplate.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserDao extends JpaRepository<User,Integer> {
    User findUserById(int id);
    User findByUsername(String name);
}
